package com.hycreate.platform.modules.project;

import org.hibernate.validator.constraints.Length;

import com.hycreate.platform.common.persistence.DataEntity;

/**
 * 项目Entity
 * @author hoader
 * @version 2017-01-09
 */
public class SfProject extends DataEntity<SfProject> {
	
	private static final long serialVersionUID = 1L;
	private String code;		// 编码
	private String name;		// 名称
	private String type;		// 类型
	private String customName;		// 客户名称
	private String area;		// 所属区域
	private String city;		// 城市
	private String content;		// 简介
	private String enName;		// 英文名称
	private String enType;		// 英文类型
	private String enCustomName;		// 英文客户名称
	private String enArea;		// 英文所属区域
	private String enCity;		// 英文城市
	private String enContent;		// 英文简介
   
	private String projectPicUrl;  //项目图片
	
	private String existImage;   //是否有图片

	public SfProject() {
		super();
	}

	public SfProject(String id){
		super(id);
	}
	
	@Length(min=0, max=500, message="名称长度必须介于 0 和 500 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Length(min=0, max=64, message="编码长度必须介于 0 和 64 之间")
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	@Length(min=0, max=20, message="类型长度必须介于 0 和 20 之间")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	@Length(min=0, max=200, message="客户名称长度必须介于 0 和 200 之间")
	public String getCustomName() {
		return customName;
	}

	public void setCustomName(String customName) {
		this.customName = customName;
	}
	
	@Length(min=0, max=20, message="所属区域长度必须介于 0 和 20 之间")
	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}
	
	@Length(min=0, max=20, message="城市长度必须介于 0 和 20 之间")
	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}
	
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Length(min=0, max=500, message="英文名称长度必须介于 0 和 500 之间")
	public String getEnName() {
		return enName;
	}

	public void setEnName(String enName) {
		this.enName = enName;
	}

	@Length(min=0, max=20, message="英文类型长度必须介于 0 和 20 之间")
	public String getEnType() {
		return enType;
	}

	public void setEnType(String enType) {
		this.enType = enType;
	}

	@Length(min=0, max=200, message="英文客户名称长度必须介于 0 和 200 之间")
	public String getEnCustomName() {
		return enCustomName;
	}

	public void setEnCustomName(String enCustomName) {
		this.enCustomName = enCustomName;
	}

	@Length(min=0, max=20, message="英文所属区域长度必须介于 0 和 20 之间")
	public String getEnArea() {
		return enArea;
	}

	public void setEnArea(String enArea) {
		this.enArea = enArea;
	}

	@Length(min=0, max=20, message="英文城市长度必须介于 0 和 20 之间")
	public String getEnCity() {
		return enCity;
	}

	public void setEnCity(String enCity) {
		this.enCity = enCity;
	}

	public String getEnContent() {
		return enContent;
	}

	public void setEnContent(String enContent) {
		this.enContent = enContent;
	}

	public String getProjectPicUrl() {
		return projectPicUrl;
	}

	public void setProjectPicUrl(String projectPicUrl) {
		this.projectPicUrl = projectPicUrl;
	}

	public String getExistImage() {
		return existImage;
	}

	public void setExistImage(String existImage) {
		this.existImage = existImage;
	}
	
	
}